//
//  HLTextView.h
//  OrderSys
//
//  Created by 1 on 2017/7/6.
//  Copyright © 2017年 com.hx. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HLTextView : UITextView

@property (strong, readonly, nonatomic)  UILabel  *placeholderLabel;

@property (copy, readwrite, nonatomic)   NSString *placeholder;

@property (strong, readwrite, nonatomic) UIColor  *placeholderColor;

@property (nonatomic, assign) float placeholderX;

@property (nonatomic, assign) float textLength;

@property (nonatomic, assign) BOOL  isCHECKLENGTH;

@property (strong, readonly, nonatomic)  UILabel  *labelLength;

- (void)textChanged:(NSNotification *)notification;

@end






/*
 - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
 {
 if (![text isEqualToString:@""]) {
 _placeholder.hidden = YES;
 }
 
 if ([text isEqualToString:@""] && range.location == 0 && range.length == 1) {
 _placeholder.hidden = NO;
 }
 
 return YES;
 }

 */
